import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import moment from 'moment'
import router from './router'
import store from './store'
import App from './App.vue'

Vue.use(ElementUI)
Vue.config.productionTip = false

Vue.filter('format', function (value, formatStr) {
  if (!value) return ''
  return moment(value).format(formatStr)
})

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
